package com.acsior.hibernate.vo;

// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.acsior.dac.impl.hibernate.vo.GeneratorKey;
import com.acsior.dac.impl.hibernate.vo.HibernatePersistantIntegerIdVO;

/**
 * StationCashBoxTransactionCashDesk entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "station_cash_box_transactions_cash_desk")
@GeneratorKey(tableName = "station_cash_box_transactions_cash_desk")
public class StationCashBoxTransactionCashDeskVO extends HibernatePersistantIntegerIdVO {

	/** */
	private static final long serialVersionUID = 7188914447564863512L;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "cashDeskID", nullable = false)
	private CdCashDeskVO cashDesk;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "cashier_employee_id", nullable = false)
	private EmployeeVO cashier;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "station_cash_box_transaction_id", nullable = false)
	private StationCashBoxTransactionVO transaction;

	@Column(name = "receiptUIN")
	private Integer uin;

	/** default constructor */
	public StationCashBoxTransactionCashDeskVO() {
		super();
	}

	/**
	 * @return стойността на cashDesk
	 */
	public CdCashDeskVO getCashDesk() {
		return this.cashDesk;
	}

	/**
	 * @return стойността на cashier
	 */
	public EmployeeVO getCashier() {
		return this.cashier;
	}

	/**
	 * @return стойността на transaction
	 */
	public StationCashBoxTransactionVO getTransaction() {
		return this.transaction;
	}

	/** @return the uin */
	public Integer getUin() {
		return this.uin;
	}

	/**
	 * @param cashDesk
	 *            се залага в cashDesk
	 */
	public void setCashDesk(CdCashDeskVO cashDesk) {
		this.cashDesk = cashDesk;
	}

	/**
	 * @param cashier
	 *            се залага в cashier
	 */
	public void setCashier(EmployeeVO cashier) {
		this.cashier = cashier;
	}

	/**
	 * @param transaction
	 *            се залага в transaction
	 */
	public void setTransaction(StationCashBoxTransactionVO transaction) {
		this.transaction = transaction;
	}

	/**
	 * @param uin
	 *            the uin to set
	 */
	public void setUin(Integer uin) {
		this.uin = uin;
	}
}